﻿<extend name="Public:base" />
<block name="block-meta">
    <meta name="keywords" content="专业人才、高端兼职，广告设计，外包服务，威客，营销，策划，创意，团队，运营推广、脑力，协作，在家办公">
    <meta name="description" content="般若虾—专注中高端脑力兼职平台，专业能力强的人才库，聚集了广告设计、文案、策划、营销、工程师、美工、UI设计师、品牌、程序开发、安卓、IOS、社交媒体、数据分析、翻译、产品、推广、客服、市场等专业人才，高品质服务，坚持不比稿，让外包更轻松提升效率。">
</block>
<block name="title"><title>般若虾（boroshare）—中高端脑力兼职-人才库，专业能力强的人才库</title></block>
<block name="header_styles">
    <link href="__Public__/themes/css/page.css" rel="stylesheet" />
    <style type="text/css">
        .link-favorite {
            position: relative;
            z-index: 9;
        }

        .search-item {
            height: 340px;
        }
    </style>
</block>
<block name="main">
    <div class="basic-info-title">找人才</div>
    <form id="stForm" action="{:U('/talents')}" method="post">
        <div class="search-form">
            <ul>
                <input type="hidden" id="timegap" name="timegap" value="{$timegap}" />
                <li>发布时间：</li>
                <li><a href="javascript:void(0);" data-ttype="1" class="searchbytime tag <if condition='$timegap eq 1'>active</if>">近一周</a></li>
                <li><a href="javascript:void(0);" data-ttype="2" class="searchbytime tag <if condition='$timegap eq 2'>active</if>">近一个月</a></li>
                <li><a href="javascript:void(0);" data-ttype="0" class="searchbytime tag <if condition='$timegap eq 0'>active</if>">全部</a></li>
            </ul>
            <ul>
                <input type="hidden" id="sortype" name='sortype' value="{$sortype}" />
                <li>排序方式：</li>
                <li><a href="javascript:void(0);" data-stype="1" class="sortby tag <if condition='$sortype eq 1'>active</if>">空闲</a></li>
                <li><a href="javascript:void(0);" data-stype="2" class="sortby tag <if condition='$sortype eq 2'>active</if>">资历最深</a></li>
            </ul>
        </div>
    </form>
    <div class="search-content" id="divContainer">
        <div class="talent-results">
            <volist name="rencai" id="vo">
                <div class="talent-item">
                    <a href="{$vo['uid']|genTalentURL}" class="talent-avator">
                        <img data-original="__APP__/{:toTalentPhoto($vo['photo'],$vo['utype'])}" class="lazy" alt="" width="150" />
                    </a>
                    <div class="talnet-name">
                      <a href="{$vo['uid']|genTalentURL}"><notempty name="vo['job']">{$vo.job}<else />未填写</notempty></a>
                      <span class="talnet-year"><notempty name="vo['exp']">{$vo.exp}年</notempty></span>
                    </div>
                    <div class="talnet-details">
                        <div class="talnet-baseinfo">
                            {$vo.nickname}
                            <span class="talnet-gender">
                                <i class="fa fa-<if condition=" $vo['gender'] eq 1">mars<elseif condition="$vo['gender'] eq 2" />venus<elseif condition="$vo['gender'] eq 0" />genderless</if>"></i>
                            </span>
                            &nbsp;&nbsp;
                            <span class="talnet-baseinfo gray font16">{$vo.address}&nbsp;&nbsp;{$vo.xueli|toName}&nbsp;&nbsp;{$vo.major}&nbsp;&nbsp;{$vo.school|textFilter=###}</span>
                        </div>
                        <div class="talnet-others">
                            <div class="talnet-heading">归宿团队：</div>
                            <div class="talnet-content">
                                <if condition="$vo['teamid'] eq -1">寻主中<else />{$vo['teamname']}</if>
                            </div>
                        </div>
                        <div class="talnet-others">
                            <div class="talnet-heading">自我简介：</div>
                            <div class="talnet-content">
                                <if condition="$vo.about heq 0">{$vo.about|textFilter=###,1}<elseif condition="$vo.about eq ''"/>未填写<else />{$vo.about|nl2br}</if>
                            </div>
                        </div>
                        <div class="talnet-others">
                            <div class="talnet-heading">技能描述：</div>
                            <div class="talnet-content">
                                <if condition="$vo.jineng heq 0">{$vo.jineng|textFilter=###,1}<elseif condition="$vo.jineng eq ''"/>未填写<else/>{$vo.jineng|nl2br}</if>
                            </div>
                        </div>
                    </div>
                </div>
            </volist>
        </div>
        <div class="result page meneame">{$page}</div>
    </div>
</block>
<block name="footer_scripts">
    <script type="text/javascript">
        require(["jquery"], function ($) {
            $(".searchbytime").on("click", function () {
                var ttype = $(this).data("ttype");
                var stype = $('#sortype').val();
                $('#timegap').val(ttype);
                $('#sortype').val(stype);
                $('#stForm').submit();
            });

            $(".sortby").on("click", function () {
                var ttype = $('#timegap').val();
                var stype = $(this).data("stype");
                $('#timegap').val(ttype);
                $('#sortype').val(stype);
                $('#stForm').submit();
            });
        });


        //function sortAndTime(ttype, stype) {
        //    $('#timegap').val(ttype);
        //    $('#sortype').val(stype);
        //    $('#stForm').submit();
        //}
        //function timegap(ttype) {
        //    var stype = $('#sortype').val();
        //    sortAndTime(ttype, stype);
        //}
        //function sort(stype) {
        //    var ttype = $('#timegap').val();
        //    sortAndTime(ttype, stype);
        //}
    </script>
</block>
